Hi Tom,
I'm interested in using the KFLOP user programs to actually cut parts. I'm very familiar with C, and the opportunity to use a capable, structured programming language is very attractive.
I found the "KMotionDef.h" file, which has some clues as to the "API" of KFLOP.
It looks like all the native motion commands are in "absolute coordinates", which I suspect is encoder counts for our CNC router with brushless DC motors and encoders.
If I want to move in a straight line from a point in 3-space ABC to a second point XYZ at a particular rate, I suspect I need to call
void SetupForMove(double From, double To, float MaxVel, CHAN *ch, int CoeffOffset,
int NoJerkControlAtStart,
int NoJerkControlAtEnd,
int Start);
and then call
StartMove()
There is also
void MoveXYZABC(double x, double y, double z, double a, double b, double c); // Moves 6 axes (each axis moves independently)
int CheckDoneXYZABC(); // Check if all CS axis have completed , returns 1 if all complete, -1 if any is disabled, otherwise 0
--> Which calls should I use to move in a straight line, at a predetermined rate?
--> How can I know when the move completes?
--> Do you have any comment on the advisability of using this approach?
Thanks,
Hugh